package com.weng.cloud.service8882.zuul;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: weng
 * @Date: 2022/3/12
 * @Description: com.weng.cloud.service8881.zuul
 */
@RestController
public class ZuulController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/zuul-retry")
    public String testZuulRetry() throws InterruptedException {
        System.err.println("欧克按摩 => "+port);
        Thread.sleep(600);
        return "要有贝宝支持就好了";
    }
}
